package cn.edu.zut.DAO;

import cn.edu.zut.model.Course;
import cn.edu.zut.model.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;

import javax.annotation.Resource;
import java.util.List;
public abstract class AbstractStudentDAO implements StudentDAO {
    List<Student> students;
    List<Course> courses;
    JdbcTemplate jdbcTemplate;


    @Override
    public void insertStudent(Student student) {

    }

    @Override
    public void insertAll(List<Student> studentList) {

    }

    @Override
    public void deleteStudent(Student student) {

    }

    @Override
    public void deleteAll(List<Student> studentList) {

    }

    @Override
    public void deleteBySno(char Sno) {

    }

    @Override
    public void modifyStudent(Student student) {

    }

    @Override
    public void modifySumCredit(Student student) {

    }

    @Override
    public Student queryOneStudentBySno(char Sno) {
        return null;
    }

    @Override
    public List<Student> queryAllStudent() {
        return null;
    }

    @Override
    public Student queryOneStudent(Student student) {
        return null;
    }

    public List<Student> getStudents() {
        return students;
    }

    public JdbcTemplate getJdbcTemplate() {
        return jdbcTemplate;
    }

    @Resource(name = "list")
    public void setStudents(List<Student> students) {
        this.students = students;
    }
    @Autowired
    public void setJdbcTemplate(JdbcTemplate jdbcTemplate) {
        this.jdbcTemplate = jdbcTemplate;
    }
}
